import { axios } from '@/utils/request'

/**
 * 查询房间费用表
 *
 * @author anti
 * @date 2021-04-18 17:08:44
 */
export function roomExpensesPage (parameter) {
  return axios({
    url: '/roomExpenses/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 房间费用表列表
 *
 * @author anti
 * @date 2021-04-18 17:08:44
 */
export function roomExpensesList (parameter) {
  return axios({
    url: '/roomExpenses/list',
    method: 'get',
    params: parameter
  })
}

export function getExpensesListByRoomId (parameter) {
  return axios({
    url: '/roomExpenses/getExpensesListByRoomId/' + parameter,
    method: 'get',
    params: parameter
  })
}

export function getExpensesListByLeaseId (parameter) {
  return axios({
    url: '/roomExpenses/getExpensesListByLeaseId/' + parameter,
    method: 'get',
    params: parameter
  })
}

/**
 * 添加房间费用表
 *
 * @author anti
 * @date 2021-04-18 17:08:44
 */
export function roomExpensesAdd (parameter) {
  return axios({
    url: '/roomExpenses/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑房间费用表
 *
 * @author anti
 * @date 2021-04-18 17:08:44
 */
export function roomExpensesEdit (parameter) {
  return axios({
    url: '/roomExpenses/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除房间费用表
 *
 * @author anti
 * @date 2021-04-18 17:08:44
 */
export function roomExpensesDelete (parameter) {
  return axios({
    url: '/roomExpenses/delete',
    method: 'post',
    data: parameter
  })
}
